package com.zyz.L_泛型.自定义泛型;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @author: vick
 * @Date: 2025/4/2
 * @Description:
 * @version: 1.0
 */
public class Demo2 {
    public <E> E get(int id, E e) {
        E result =  null;
        return result;
    }

    public static <T> void fromArrayToC (T[] a, Collection<T> c) {
        for (T o : a) {
            c.add(o);
        }
    }


    public static void main(String[] args) {
        String[] objects = new String[100];
        ArrayList<String> strings = new ArrayList<>();
        fromArrayToC(objects, strings);
    }
}
